<?xml version="1.0" encoding="UTF-8"?>

<!--
    Document   : rssFirstPass.xsl
    Created on : June 2, 2013, 10:04 PM
    Author     : Hoang
    Description:
        Purpose of transformation follows.
-->

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:output method="html" indent="yes" encoding="UTF-8"/>
    <!-- TODO customize transformation rules 
         syntax recommendation http://www.w3.org/TR/xslt 
    -->
    <xsl:template match="/">
        <xsl:apply-templates select="feeds">
        </xsl:apply-templates>
    </xsl:template>

    <xsl:template match="feeds">
            <xsl:for-each select="feed">
                <div class="entry">
                    <h3>
                        <a href="{link}">
                            <xsl:value-of select="title"/>
                        </a>
                    </h3>
                    <div class="feedEntryContent">
                        <div>
                            <xsl:value-of select="description" disable-output-escaping="yes"/>
                        </div>
                    </div>
                </div>
            </xsl:for-each>   
    </xsl:template>

</xsl:stylesheet>
